Skip to content

Conversation

@martindilling
Copy link

Mostly direct translation of the Augmented BNF for an IRC message to
a giant regex.
It takes a raw IRC message and returns an array with:

`prefix`     // The whole prefix string
`nickname`   // The nickname from the prefix
`username`   // The username from the prefix
`hostname`   // The hostname from the prefix
`servername` // The servername from the prefix
`command`    // The command
`params`     // The parameters

I'm pretty sure this can be optimised quite a lot, but for now it parses
following the specification and it works ;)

@garethellis36
Copy link
Contributor

Nice job!

Mostly direct translation of the Augmented BNF for an IRC message to
a giant regex.
It takes a raw IRC message and returns an array with:

    `prefix` // The whole prefix string
    `nickname` // The nickname from the prefix
    `username` // The username from the prefix
    `hostname` // The hostname from the prefix
    `servername` // The servername from the prefix
    `command` // The command
    `params` // The parameters

I'm pretty sure this can be optimised quite a lot, but for now it parses
following the specification and it works ;)
Needed to explicitly set the minimum version we need of the
phpunit/php-token-stream package. Probably somewhere in the phpunit
dependency tree it have specified a minimum version of that package
that doesn't support PHP 7.
@olorton
Copy link
Member

olorton commented Feb 10, 2016

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants